Inserting elements to a list in Python